package com.css.fxfzypg.manage.disasterrisk.repository;

import com.css.fxfzypg.base.attachment.entity.AttachmentInfoEntity;
import com.css.fxfzypg.manage.disasterrisk.repository.entity.DisasterRiskEntity;
import com.css.fxfzypg.manage.disasterrisk.vo.DisasterRiskParams;
import com.css.fxfzypg.modules.surveytaskmanage.entity.FieldSurveyTaskEntity;
import org.springframework.data.domain.Page;
import org.springframework.stereotype.Repository;

import java.text.ParseException;
import java.util.Date;
import java.util.List;
import java.util.Map;

@Repository
public interface DisasterRiskReqository {

    boolean saveDisasterRisk(DisasterRiskEntity disasterRiskEntity);

    Map<String,Object> querySubmitOrNot(String submitFlag, int curPage, int pageSize, String userId);

    boolean updateIsSubmit(Map<String,String> map);

    DisasterRiskEntity queryData(String id);

    boolean modifyData(DisasterRiskEntity disasterRiskEntity);

    Map<String, Object> queryDisasterData(DisasterRiskParams queryParams, int curPage, int pageSize);

    boolean deleteDisasterRisk(String id);

}
